<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <form action="/thymeleaf/update">
        <input type="hidden" th:value="${product.id}" name="id">
        商品名:<span th:text="${product.name}"></span><br>
        单价:<input type="text" name="price" th:value="${product.price}"><br>
        类别:<span th:text="${product.type}"></span><br>
        生产日期:<span th:text="${product.createDate}"></span><br>
        <input type="submit" value="修改">
    </form>
</body>
</html>